import {
	myRequest,
	CRMURL
} from '@/utils/api.js'


// 商品分类
export function apiGoodsCategory(data) {

	let action = data.action || '';
	let postdata = data.params || '';

	switch (action) {
		case 'get_list':
			return myRequest(CRMURL + '/api.GoodsCategory/show_json', postdata)
			break;
		default:
			let text = "期待周末！";
			return Promise.resolve(text);
	}
}

// 商品sku
export function apiGoodsSku(data) {

	let action = data.action || '';
	let postdata = data.params || '';

	switch (action) {
		case 'get_list':
			return myRequest(CRMURL + '/api.GoodsSku/show_json', postdata)
			break;
		default:
			let text = "期待周末！";
			return Promise.resolve(text);
	}
}


//////////////////////////////////////////////////////////////////////////////////////////////////////////